package Shape;

public class Cycle extends Shape {
    private double r;
    final private static double PI=3.14;
    public Cycle(double r){
     this.r=r;

    }

    public void draw(){
        System.out.println("圆：r="+r);
    }

    public void calcArea(){
        area=PI*r*r;
    }
}
